<?php
namespace app\common\model;

use think\Model;

class User extends Model
{
    protected $insert = ['applicationDate'];
    protected $readonly = ['phone'];

    /**
     * 创建时间
     * @return bool|string
     */
    protected function setApplicationDateAttr()
    {
        return date('Y-m-d H:i:s');
    }

    /**
     * 创建时间
     * @return bool|string
     */
    protected function setFetedayAttr()
    {
        return date('Y-m-d H:i:s');
    }

    protected function setSiteAttr($value)
    {
        $value = implode(',',$value);
        return $value;
    }

    protected function getSiteAttr($value)
    {
        $value = explode(',',$value);
        return $value;
    }

}